//
//  CTMediator+CYNetwork.h
//  CYNetworkComponent_Example
//
//  Created by lc4y on 2018/2/15.
//  Copyright © 2018年 lc4y. All rights reserved.
//

#import <CTMediator/CTMediator.h>

typedef void (^CYNetWorkRequest)(id obj,NSError *error);

@interface CTMediator (CYNetwork)

// 配置服务器地址
- (void)CYNetwork_configServerUrl:(NSString *)serverUrl;
// 配置网络请求公共参数
- (void)CYNetwork_configCommonArguments:(NSDictionary *)commonArgument;
// http get请求
- (void)CYNetwork_getDataFromServer:(CYNetWorkRequest)requestBlock;
    
@end
